package top.lyc829.iot_android.util;

import android.util.Log;

/**
 * @Author lyc
 * @create 2021-06-19 15:16
 */
public class LogUtil {
    public static final String TAG="myTag";
    public static final String TAG_MQTT = "mqtt";

    /**
     * 打log工具
     * @param log 待打印的字符串
     */
    public static void Soutd(String log) {
        Log.d(TAG, log);
    }

    public static void SoutMqtti(String log) {
        Log.i(TAG_MQTT, log);
    }

    public static void SoutMqttd(String log) {
        Log.d(TAG_MQTT, log);
    }

    public static void SoutMqtte(String log) {
        Log.e(TAG_MQTT, log);
    }

    public static void SoutMqtte(Exception exception) {
        if (exception != null) {
            SoutMqtte(exception.getMessage());
            exception.printStackTrace();
        }
    }

    /**
     * 打log工具
     * @param log 待打印的字符串
     */
    public static void Soute(String log) {
        Log.e(TAG, log);
    }


    public static void Souti(String log) {
        Log.e(TAG, log);
    }



}
